package com.siwei.infoextract.wrapper.attributeextract;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.siwei.infoextract.SystemConfig;
import com.siwei.infoextract.rule.RuleEngine;
import com.siwei.infoextract.wrapper.parser.DomNode;
import com.siwei.infoextract.wrapper.parser.DomNodeIteratorCallback;
import com.siwei.infoextract.wrapper.parser.DomTreeTraversal;

public class AddressAttributeExtractor extends AttributeExtractor {
	public AddressAttributeExtractor() {
		try {
			String ruleFileKey = "ruleengine.rulefile." + RuleEngine.ADDRESS_RULE_ENGINE_NAME; 
			String ruleFile = SystemConfig.getValue(ruleFileKey);
	
			ruleEngine = new RuleEngine(ruleFile, RuleEngine.ADDRESS_RULE_ENGINE_NAME);
			ruleEngine.load();
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}
}
